import React from "react";
import styled from "styled-components";
const logo = require("../../assets/images/logo_3x.png");
const HeaderWrapper = styled.div`
  box-sizing: border-box;
  width: 100%;
  height: 84px;
  padding: 0 10px;
  background-color: #d43c33;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  .down {
    width: 100px;
    height: 36px;
    line-height: 36px;
    background-color: #fff;
    color: #d43c33;
    border-radius: 30px;
    text-align: center;
  }
`;
const Logo = styled.div`
  width: 154px;
  height: 27px;
  background: url(${props => props.logo});
  background-size: cover;
  transform-origin: left bottom;
  transform: scale(0.92);
`;

function Header(props) {
  return (
    <HeaderWrapper>
      <Logo logo={logo} />
      <div className="down">下载APP</div>
    </HeaderWrapper>
  );
}

export default Header;
